615 HTAB (8): PRINT "------------------------": FOR PAUSE = 1 TO 1000: NEXT
620 PRINT : PRINT TAB( 11)"BY MERVYN MITCHELL"
630 FOR PAUSE = 1 TO 4000: NEXT : HOME
640 HOME : VTAB (12): HTAB (10): INPUT "INSTRUCTIONS (Y/N)?";A$
644 IF A$ = "Y" THEN HOME : GOTO 650
646 IF A$ = "N" THEN 940
648 GOTO 640
650 PRINT " I DARE YOU TO CHALLENGE THE HANGMAN "
660 PRINT " -----------------------------------"
670 PRINT : PRINT : PRINT " THE OBJECT OF THIS GAME IS TO DISCOVERA SECRET WORD CHOSEN BY THE COMPUTER. YOU ARE ALLOWED TO GUESS THE LETTERS ANDWHENEVER YOU CHOOSE ONE CORRECTLY, THE COMPUTER WILL PRINT IT ON THE SCREEN.": PRINT
740 PRINT " BUT IF YOU MAKE A WRONG GUESS, THE COMPUTER STARTS TO BUILD A GALLOWS, ADDING A NEW PIECE EVERY TIME YOU MAKE AMISTAKE.": PRINT
762 PRINT " YOU WILL APPRECIATE THE IMPORTANCE OF CORRECTLY GUESSING THE WORD BEFORE THE GALLOWS ARE COMPLETED AND A VICTIM MUST BE FOUND.": PRINT
770 PRINT "...... PRESS ANY KEY TO CONTINUE .....";: GET A$: HOME
940 GOSUB 5300
945 HOME : VTAB (3): HTAB (5): INPUT "WHAT IS YOUR NAME? ";F$: HOME
1020 PRINT : PRINT " THIS GAME IS REALLY QUITE SIMPLE ......TO GUESS A LETTER, SIMPLY PRESS THR KEY AND THECOMPUTER WILL DO THE REST.": PRINT
1080 PRINT "*** EACH GAME CONSISTS OF FIVE WORDS ***": PRINT : FLASH : HTAB (13): PRINT " GOOD LUCK! ": NORMAL
1085 VTAB 22: FLASH : PRINT "NOTE: ";: NORMAL : PRINT "IT MAY BE NECESSARY FOR YOU TO MAKE UP WORD LISTS USING THE 'HANGMAN MAKE WORDS LISTS' PROGRAM...."
1090 REM READ IN WORD LIST
1095 PRINT CHR$(4);"NOMON C,I,O"
1100 PRINT CHR$(4);"OPEN ";NAME$
1110 PRINT CHR$(4);"READ ";NAME$
1120 INPUT NUM: FOR I = 1 TO NUM
1140 INPUT MOT$(I): NEXT
1160 PRINT CHR$(4);"CLOSE ";NAME$
1170 FOR PAUSE = 1 TO 2000: NEXT
2000 HOME : GR : COLOR= 7: FOR I = 0 TO 39
2030 HLIN 0,39 AT I: NEXT
2050 COLOR= 9: HLIN 1,38 AT 1: HLIN 1,38 AT 38: VLIN 1,38 AT 38: VLIN 1,38 AT 1
2090 GOOD = 0
2100 FOR I = 1 TO 5
2101 COLOR= 7: FOR U = 4 TO 36: HLIN 4,36 AT U: NEXT
2110 T = 0: REM T IS NO. OF CHARACTERS IN WORD/S
2112 S = 0: REM S IS NO OF CHARACTERS GUESSED RIGHT SO FAR
2114 U = 0: REM U IS NO. OF ATTEMPTS TO GUESS LETTERS
2116 BAD = 0: REM BAD IS NO. OF PARTS OF GALLOWS ASSEMBLED
2145 HOME : VTAB (21)
2150 PRINT "AND NOW, ";F$;", FOR WORD NO. ";I
2160 R = ( INT( RND(1) *NUM)) +1
2190 FOR J = 1 TO LEN(MOT$(R))
2210 IF MID$ (MOT$(R),J,1) = " " THEN LB$(J) = " ": GOTO 2230
2220 LB$(J) = "-":T = T +1
2230 NEXT J
2260 VTAB (23): HTAB (28)
2280 PRINT "(";T;" LETTERS)"
2290 COLOR= 0
2300 HLIN 3,6 AT 3: VLIN 3,6 AT 3: HLIN 3,6 AT 6: VLIN 6,9 AT 6: HLIN 3,6 AT 9
2310 HLIN 8,12 AT 3: VLIN 3,8 AT 10
2320 HLIN 14,17 AT 3: HLIN 14,17 AT 5: VLIN 3,8 AT 14: VLIN 3,8 AT 17
2330 HLIN 19,22 AT 3: HLIN 19,22 AT 5: VLIN 3,5 AT 22: PLOT 20,6: PLOT 21,7: PLOT 22,8: VLIN 3,8 AT 19
2340 HLIN 24,28 AT 3: VLIN 3,8 AT 26
2350 VLIN 11,16 AT 3: VLIN 11,16 AT 7: VLIN 11,12 AT 4: VLIN 13,14 AT 5: VLIN 15,16 AT 6
2360 VLIN 12,15 AT 9: VLIN 12,15 AT 12: HLIN 10,11 AT 11: HLIN 10,11 AT 16
2370 VLIN 11,16 AT 14: VLIN 15,16 AT 15: VLIN 13,14 AT 16: VLIN 15,16 AT 17: VLIN 11,16 AT 18
2380 HLIN 21,22 AT 14: HLIN 25,26 AT 14: HLIN 29,30 AT 14: HLIN 33,34 AT 14
2381 VTAB (23): HTAB (3): FOR J = 1 TO LEN(MOT$(R))
2382 PRINT LB$(J);: NEXT
2383 VTAB (5): IF S = T THEN 2590
2385 U = U +1: GET Z$: IF U >1 THEN 2450
2410 COLOR= 7
2420 FOR U = 3 TO 36: HLIN 3,35 AT U: NEXT
2450 X = 0
2455 FOR J = 1 TO LEN(MOT$(R))
2460 IF Z$ = MID$ (MOT$(R),J,1) AND Z$ < >LB$(J) THEN LB$(J) = Z$:S = S +1:X = X +1
2465 IF Z$ = LB$(J) THEN X = 1
2470 NEXT
2510 IF X = 0 THEN GOSUB 6000
2515 IF BAD = 12 THEN 2650
2520 GOTO 2381
2590 FOR PAUSE = 1 TO 1500: NEXT
2600 GOOD = GOOD +1
2604 COLOR= 7
2606 FOR U = 3 TO 36: HLIN 3,35 AT U: NEXT
2608 COLOR= 1: HLIN 17,24 AT 5: PLOT 25,6: PLOT 26,7: VLIN 8,15 AT 27: PLOT 26,16: PLOT 25,17: HLIN 17,24 AT 18: PLOT 16,17: PLOT 15,16: VLIN 8,15 AT 14: PLOT 15,7: PLOT 16,6
2609 HLIN 17,19 AT 8: HLIN 22,24 AT 8: PLOT 18,9: PLOT 23,9: HLIN 20,21 AT 11: HLIN 19,22 AT 15: PLOT 23,14: PLOT 24,13: PLOT 18,14: PLOT 17,13